//
//  UIViewController+NBCURLRouter.m
//  NBCURLRouterDemo
//
//  Created by naruto on 16/8/17.
//  Copyright © 2016年 naruto. All rights reserved.
//

#import "UIViewController+NBCURLRouter.h"
#import <objc/runtime.h>

@implementation UIViewController (NBCURLRouter)


#pragma mark - nbcRouterParams
- (NSDictionary *)nbcRouterParams
{
    return objc_getAssociatedObject(self, @selector(nbcRouterParams));
}

- (void)setNbcRouterParams:(NSDictionary *)nbcRouterParams
{
    objc_setAssociatedObject(self, @selector(nbcRouterParams), nbcRouterParams, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}


#pragma mark - nbcRouterStrParams
- (NSString *)nbcRouterStrParams
{
    return objc_getAssociatedObject(self, @selector(nbcRouterStrParams));
}

- (void)setNbcRouterStrParams:(NSString *)nbcRouterStrParams
{
    objc_setAssociatedObject(self, @selector(nbcRouterStrParams), nbcRouterStrParams, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

#pragma mark - public
-(BOOL)nbcConvertParamsToDict
{
    return YES;
}
@end
